<?php
$displayOnly = $this->data->step == ViseminWizardData::$STEP_SUMMARY;

$fb = new FormBuilder('viSeminar', $viSeminar);

$fb->setFormId('wizardForm');
$fb->displayOnly($displayOnly);
$fb->setAction('/admin/viseminWizard/next');
$fb->text('name')->required();
$fb->text('instructor')->required();
$fb->date('begin_date')->required();
$fb->time('begin_time')->required();
$fb->date('end_date')->required();
$fb->time('end_time')->required();
$fb->yesNoBox('is_for_instructors')->hint();
$fb->comboBox('bank_account_id', $bankAccountOptions)->required();
$fb->text('variable_symbol')->required();
$fb->textarea('description')->required();
$fb->selectMany('vi_accomodation_type_codes', $viAccomodationTypeOptions)->hint()
    ->ajaxCreateButton('/admin/viAccomodationType/edit')
    ->required();
$fb->text('info_url')->hint();
$fb->yesNoBox('active')->noEmptyOption();
$fb->textarea('notes')->hint();
$fb->delimiter();
$fb->yesNoBox('last_meal_in_package_option')->noEmptyOption();
$fb->yesNoBox('meals_optional')->noEmptyOption();
$fb->yesNoBox('cash_payment_available')->noEmptyOption();
$fb->delimiter();
$fb->selectMany('vi_seminar_tag_ids', $viSeminarTagOptions)
    ->ajaxCreateButton('/admin/viSeminarTag/edit');
$fb->write();
?>
